package com.fly.springbootTemplate.service;

import com.fly.springbootTemplate.entity.StudentDetail;
import com.fly.springbootTemplate.entity.dto.StudentDto;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface StudentDetailService {
    //增加一个学生详情
    boolean addStudentDetail(StudentDto studentDto);
    //删除一个学生详情
    boolean deleteStudentDetail(Integer sno);
    //修改一个学生详情
    boolean updateStudentDetail(StudentDto studentDto);
    //查询所有学生
    List<StudentDto> getAllStudentDetail();
    //根据sno查询学生
    StudentDto getStudentDetailBySno(Integer sno);
}
